<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>Cases列表</title>
    <!--CSS-->
    <link rel="stylesheet" type="text/css" media="all" href="/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/common.css"/>

    <!--Custom CSS-->
    <link rel="stylesheet" type="text/css" media="all" href="/css/CaseManager.css"/>
</head>

    <body>

        <div class="layui-fluid">
                <div class="layui-row">
                    <div class="layui-col-sm12">

                        <!--标题-->
                        <div style="width: 80px; font-weight: bolder; font-size: large; margin-top: 20px; margin-left: auto; margin-right: auto">Case列表</div>

                        <br/>

                        <!--环境选择-->
                        <div class="layui-col-xs3">
                            <form class="layui-form" action="">
                                <div class="layui-form-item">
                                    <label class="layui-form-label layui-bg-green" style="text-align: center;margin-right: 3px;">测试环境:</label>
                                    <div class="layui-input-inline">
                                        <select name="envSelect" id="envSelect">
                                            <option value="1" selected="selected">α环境</option>
                                            <option value="2">β环境</option>
                                            <option value="3">sit环境</option>
                                        </select>
                                    </div>

                                </div>
                            </form>
                        </div>

                        <!--筛选区-->
                        <div class="layui-col-xs3">

                            <div class="demoTable">
                                搜索ID：
                                <div class="layui-inline">
                                    <input class="layui-input" name="id" id="idReload" autocomplete="off" />
                                </div>
                                <button class="layui-btn" data-type="reload">搜索</button>
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                                搜索模块：
                                <div class="layui-input-inline" style="width: 160px;">
                                    <div class="layui-form">
                                        <select name="moduleSelect" id="moduleSelect2">
                                            <option value="">请选择模块</option>
                                        </select>
                                    </div>
                                </div>
                            <button class="layui-btn" data-type="reload">搜索</button>
                        </div>

                        <div class="layui-col-lg-offset11">
                            <a href="#" onclick="scene()" style="margin-top:10px;" target="_blank" class="layui-btn layui-btn-primary">业务接口自动化</a>
                        </div>


                        <!--主表格-->
                        <table class="layui-table" id="table" lay-filter="table"></table>
                        <!--新建Case按钮-->
                        <a href="/case/add" style="margin-top:10px;" target="_blank" class="layui-btn">新建Case</a>

                        <!--运行选定Case按钮-->
                        <button class="layui-btn layui-btn-normal" style="margin-top:10px;" data-type="getCheckData">运行选定Case</button>

                        <!--运行全部Case按钮-->
                        <input id="runAllBtn" onclick="clickRunAll()" style="margin-top: 10px;" class="layui-btn layui-btn-danger" value="运行全部Case" />
                        <!--查看报告按钮-->
                        <a href="http://192.168.200.41:8888" style="margin-top:10px;" target="_blank" class="layui-btn layui-btn-warm">查看报告</a>
                        <!--分模块运行Case下拉单-->

                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                            <legend>按模块运行Case 或者 清理SQL</legend>
                        </fieldset>

                        <form class="layui-form" action="">
                            <div class="layui-form-item">
                                <div class="layui-input-inline">
                                    <select name="moduleSelect" id="moduleSelect">
                                        <option value="">请选择模块</option>
                                    </select>
                                </div>

                                <!--分模块运行Case按钮-->
                                <input id="runModuleBtn" onclick="clickRunModule()" class="layui-btn layui-btn-danger" value="运行选定模块Case" />

                                <!--按模块运行清理SQL按钮-->
                                <input id="runModuleBtnSQL" onclick="clickRunModuleSQL()" class="layui-btn layui-btn-danger" value="运行选定模块清理SQL" />

                            </div>

                        </form>

                    </div>
                </div>
        </div>

        <!--Footer-->
        <div class="fly-footer" style="margin-right: auto; margin-left: auto; width: 200px;">
            <p><a href="#" target="_blank">我打 - 测试部</a> 2018</p>
        </div>


    <!--<script th:inline="javascript">-->
<script>
    function scene() {
        loadPageWithBlank("/scene/sceneList");
    }
</script>




    <!--</script>-->

    <script type="text/html" id="bodyTpl">

        <span style="font-weight: bold">{{ d.body }}</span>

    </script>

    <script type="text/html" id="checkboxTpl">
        {{#  if(d.status == "on"){ }}
        <input type="checkbox" name="status" lay-skin="switch" checked="checked" disabled="disabled" />
        {{#  } else { }}
        <input type="checkbox" name="status" lay-skin="switch" disabled="disabled" />
        {{#  } }}
    </script>

    <script type="text/html" id="signatureCheckboxTpl">
        {{#  if(d.signature == "on"){ }}
        <input type="checkbox" name="signature" lay-skin="switch" checked="checked" disabled="disabled" />
        {{#  } else { }}
        <input type="checkbox" name="signature" lay-skin="switch" disabled="disabled" />
        {{#  } }}
    </script>




    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" lay-event="detail">查看/编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="mock">Mock</a>
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="remark">备注</a>
    </script>

    </body>

    <!--JavaScript-->
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <!--Custom JavaScript-->
    <script type="text/javascript" src="/js/myJs.js"></script>
</html>